home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / asm / utils / crossword / includes / my_graf.i < prev    next >
Encoding:
Text File  |  1980-01-04  |  3.6 KB  |  235 lines

  1.  
  2. * This is my graphics library standard header file.
  3. * Another Genam ripoff mutated to fit in with my
  4. * whims and fancies.
  5.  
  6. * Graphics.Library offsets
  7.  
  8. BltBitMap    equ    -30
  9. BltTemplate    equ    -36
  10. ClearEOL        equ    -42
  11. ClearScreen    equ    -48
  12. TextLength    equ    -54
  13. Text        equ    -60
  14. SetFont        equ    -66
  15. OpenFont        equ    -72
  16. CloseFont    equ    -78
  17. AskSoftStyle    equ    -84
  18. SetSoftStyle    equ    -90
  19. AddBob        equ    -96
  20. AddVSprite    equ    -102
  21. DoCollision    equ    -108
  22. DrawGList    equ    -114
  23. InitGels        equ    -120
  24. InitMasks    equ    -126
  25. RemIBob        equ    -132
  26. RemVSprite    equ    -138
  27. SetCollision    equ    -144
  28. SortGList    equ    -150
  29. AddAnimObj    equ    -156
  30. Animate        equ    -162
  31. GetGBuffers    equ    -168
  32. InitGMasks    equ    -174
  33. GelsFuncE    equ    -180
  34. GelsFuncF    equ    -186
  35. LoadRGB4        equ    -192
  36. InitRastPort    equ    -198
  37. InitVPort    equ    -204
  38. MrgCop        equ    -210
  39. MakeVPort    equ    -216
  40. LoadView        equ    -222
  41. WaitBlit        equ    -228
  42. SetRast        equ    -234
  43. Move        equ    -240
  44. Draw        equ    -246
  45. AreaMove        equ    -252
  46. AreaDraw        equ    -258
  47. AreaEnd        equ    -264
  48. WaitTOF        equ    -270
  49. QBlit        equ    -276
  50. InitArea        equ    -282
  51. SetRGB4        equ    -288
  52. QBSBlit        equ    -294
  53. BltClear        equ    -300
  54. RectFill        equ    -306
  55. BltPattern    equ    -312
  56. ReadPixel    equ    -318
  57. WritePixel    equ    -324
  58. Flood        equ    -330
  59. PolyDraw        equ    -336
  60. SetAPen        equ    -342
  61. SetBPen        equ    -348
  62. SetDrMd        equ    -354
  63. InitView        equ    -360
  64. CBump        equ    -366
  65. Cmove        equ    -372
  66. CWait        equ    -378
  67. VBeamPos        equ    -384
  68. InitBitMap    equ    -390
  69. ScrollRaster    equ    -396
  70. WaitBOVP        equ    -402
  71. GetSprite    equ    -408
  72. FreeSprite    equ    -414
  73. ChangeSprite    equ    -420
  74. MoveSprite    equ    -426
  75. LockLayerRom    equ    -432
  76. UnlockLayerRom    equ    -438
  77. SyncSBitMap    equ    -444
  78. CopySBitMap    equ    -450
  79. OwnBlitter    equ    -456
  80. DisownBlitter    equ    -462
  81. InitTmpRas    equ    -468
  82. AskFont        equ    -474
  83. AddFont        equ    -480
  84. RemFont        equ    -486
  85. AllocRaster    equ    -492
  86. FreeRaster    equ    -498
  87. AndRectRegion    equ    -504
  88. OrRectRegion    equ    -510
  89. NewRectRegion    equ    -516
  90.  
  91. * graphics.library reserved at -522
  92.  
  93. ClearRegion    equ    -528
  94. DisposeRegion    equ    -534
  95. FreeVPortCopLists    equ    -540
  96. FreeCopList    equ    -546
  97. ClipBlit        equ    -552
  98. XorRectRegion    equ    -558
  99. FreeCprList    equ    -564
  100. GetColorMap    equ    -570
  101. FreeColorMap    equ    -576
  102. GetRGB4        equ    -582
  103. ScrollVPort    equ    -588
  104. UCoperListInit    equ    -594
  105. FreeGBuffers    equ    -600
  106. BltBitMapRastPort    equ    -606
  107.  
  108.  
  109. * Custom Bitmap structure
  110.  
  111.  
  112.         rsreset
  113. bm_BytesPerRow    rs.w    1
  114. bm_Rows        rs.w    1
  115. bm_Flags        rs.b    1
  116. bm_Depth        rs.b    1
  117. bm_Pad        rs.w    1
  118. bm_Planes    rs.b    8*4
  119. bm_sizeof    rs.w    0
  120.  
  121.  
  122. * Colormap structure
  123.  
  124.  
  125.         rsreset
  126. cm_Flags        rs.b    1
  127. cm_Type        rs.b    1
  128. cm_Count        rs.w    1
  129. cm_ColorTable    rs.l    1
  130. cm_sizeof    rs.w    0
  131.  
  132.  
  133.         rsreset
  134. cp_collPtrs    rs.l    1
  135. cp_sizeof    rs.w    0
  136.  
  137.  
  138. * TmpRas structure
  139.  
  140.  
  141.         rsreset
  142. tr_RasPtr    rs.l    1
  143. tr_Size        rs.l    1
  144. tr_sizeof    rs.w    0
  145.  
  146.  
  147. * Text font handling information
  148.  
  149.  
  150. * Flags for TextAttr
  151.  
  152.  
  153. FS_NORMAL    equ    0
  154. FSB_EXTENDED    equ    3
  155. FSB_ITALIC    equ    2
  156. FSB_BOLD        equ    1
  157. FSB_UNDERLINED    equ    0
  158.  
  159. FSF_EXTENDED    equ    $08
  160. FSF_ITALIC    equ    $04
  161. FSF_BOLD        equ    $02
  162. FSF_UNDERLINED    equ    $01
  163.  
  164.  
  165. * Flags for TextFont
  166.  
  167.  
  168. FPB_ROMFONT    equ    0
  169. FPB_DISKFONT    equ    1
  170. FPB_REVPATH    equ    2
  171. FPB_TALLDOT    equ    3
  172. FPB_WIDEDOT    equ    4
  173. FPB_PROPORTIONAL    equ    5
  174. FPB_DESIGNED    equ    6
  175. FPB_REMOVED    equ    7
  176.  
  177.  
  178. FPF_ROMFONT    equ    $01
  179. FPF_DISKFONT    equ    $02
  180. FPF_REVPATH    equ    $04
  181. FPF_TALLDOT    equ    $08
  182. FPF_WIDEDOT    equ    $10
  183. FPF_PROPORTIONAL    equ    $20
  184. FPF_DESIGNED    equ    $40
  185. FPF_REMOVED    equ    $80
  186.  
  187.  
  188. * TextAttr structure
  189.  
  190.  
  191.         rsreset
  192. ta_Name        rs.l    1
  193. ta_YSize        rs.w    1
  194. ta_Style        rs.b    1
  195. ta_Flags        rs.b    1
  196. ta_sizeof    rs.w    0
  197.  
  198.  
  199. * TextFont structure
  200.  
  201.  
  202.         rsreset
  203. tf_MsgNode    rs.b    mn_sizeof
  204. tf_YSize        rs.w    1
  205. tf_Style        rs.b    1
  206. tf_Flags        rs.b    1
  207. tf_XSize        rs.w    1
  208. tf_Baseline    rs.w    1
  209. tf_BoldSmear    rs.w    1
  210. tf_Accessors    rs.w    1
  211. tf_LoChar    rs.b    1
  212. tf_HiChar    rs.b    1
  213. tf_CharData    rs.l    1
  214. tf_Modulo    rs.w    1
  215. tf_CharLoc    rs.l    1
  216. tf_CharSpace    rs.l    1
  217. tf_CharKern    rs.l    1
  218. tf_sizeof    rs.w    0
  219.  
  220.  
  221. * This is my macro for calling a GRAPHICS.LIBRARY function
  222.  
  223.  
  224. CALLGRAF        macro    name    ;call a GRAPHICS.LIBRARY function
  225.  
  226.         move.l    a6,-(sp)
  227.         move.l    graf_base(a6),a6
  228.         jsr    \1(a6)
  229.         move.l    (sp)+,a6
  230.  
  231.         endm
  232.  
  233.  
  234.  
  235.